<!doctype html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Cool Forms test</title>
	<script type="text/javascript" src="jquery-1.4.4.min.js"></script>
	<script type="text/javascript" src="../coolforms.js"></script>
	<link rel="stylesheet" type="text/css" href="../coolforms.css">
</head>
<body>

<h1>Cool Forms test page</h1>

<form id="myForm" class="cf" action="/" method="get">

<div class="cfIntro">
<h1>My Form</h1>

<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed
diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat
volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation
ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse
molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero
eros et accumsan et iusto odio dignissim qui blandit praesent luptatum
zzril delenit Lorem ipsum dolor sit amet, consectetuer adipiscing elit,
sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam
erat volutpat.</p>

<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed
diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat
volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation
ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse
molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero
eros et accumsan et iusto odio dignissim qui blandit praesent luptatum
zzril delenit Lorem ipsum dolor sit amet, consectetuer adipiscing elit,
sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam
erat volutpat.</p>

</div>

<div class="cfSection">
	<h2>Identity Informations</h2>

	<p>These are the usual informations to keep in touch</p>
	
	<div class="cfGroup">
		<h3>Personnal Informations</h3>
		
		<div class="cfLine">
			<div class="cfField1">
				<h4>First Name</h4>
				<input type="text" name="fname" />
				<span class="cfFieldHelp">As writen on your ID card</span>
			</div>
			<div class="cfField1">
				<h4>Last Name</h4>
				<input type="text" name="lname" />
			</div>
		</div>
		<div class="cfLine">
			<div class="cfField1">
				<h4>Gender</h4>
				<input type="text" name="fname" />
			</div>
		</div>
	</div>
	
	<div class="cfGroup">
		<h3>Login Informations</h3>
		<p>Things that describes you in a unique way</p>	
		
		<div class="cfLine">
			<div class="cfField1">
				<h4>E-Mail Address</h4>
				<input type="text" name="email" />
			</div>
			<div class="cfField1">
				<h4>Confirmation</h4>
				<input type="text" name="email_confirm" />
				<span class="cfFieldHelp">Make sure both address match</span>
			</div>
		</div>
		<div class="cfLine">
			<div class="cfField1">
				<h4>Password</h4>
				<input type="password" name="password" />
			</div>
			<div class="cfField1">
				<h4>Confirmation</h4>
				<input type="password" name="password_confirm" />
				<span class="cfFieldHelp">Make sure both passwords match</span>
			</div>
		</div>
		
	</div>
</div>

<div class="cfSection">
	<h2>Contact Informations</h2>

	<p>These are the usual informations to keep in touch</p>

	<div class="cfGroup">
		<h3>Postal Address</h3>
		<p>Mostly used for physical spam.</p>
		
		<div class="cfLine">
			<div class="cfField3">
				<h4>Address line 1</h4>
				<input type="text" name="addr1" />
			</div>
		</div>
		
		<div class="cfLine">
			<div class="cfField3">
				<h4>Address line 2</h4>
				<input type="text" name="addr2" />
			</div>
		</div>
		
		<div class="cfLine">
			<div class="cfField1">
				<h4>Zip code</h4>
				<input type="text" name="zip" />
			</div>
			<div class="cfField1">
				<h4>City</h4>
				<input type="text" name="city" />
			</div>
			<div class="cfField1">
				<h4>State</h4>
				<input type="text" name="state" />
			</div>
			<div class="cfField1">
				<h4>Country</h4>
				<input type="text" name="Country" />
			</div>
		</div>
		
	</div>	
	
</div>

</form>

<br />

<form id="test1" action="/" method="get"></form>

<script type="text/javascript" >

$(document).ready(function() 
{
	var form1 = 
	{
		id: 'test1',
		title: 'User Form',
		description: "<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed	\
		diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat		\
		volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation				\
		ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.			\
		Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse			\
		molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero			\
		eros et accumsan et iusto odio dignissim qui blandit praesent luptatum			\
		zzril delenit Lorem ipsum dolor sit amet, consectetuer adipiscing elit,			\
		sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam			\
		erat volutpat.</p>",
		
		sections: [
			{
				id: 'identity',
				title: 'Identity Informations',
				description: "<p>These are the usual informations that describes you</p>",
				
				groups: [
					{
						id: 'personalInformations',
						title: 'Personal Informations',
						description: 'Please input these exactly as written on your ID card',
						lines: [
							{
								id: 'nameLine',
								inputs: [
									{
										name: 'firstName',
										type: 'text',
										size: 2,
										title: 'First Name',
										help: 'Also called given name',
										mandatory: true
									},
									{
										name: 'secondName',
										type: 'text',
										size: 2,
										title: 'Second Name',
										help: 'Also called family name',
										mandatory: true
									}
								]
							},
							{
								inputs: [
									{
										name: 'gender',
										type: 'radio',
										size: 2,
										title: 'Gender',
										mandatory: true,
										choices:[
										{value:'female', label: 'Female', checked: true},
										{value:'male', label: 'Male'}
										]
									}
								]
							}
						]
					}
				]
			},
			{
				id: 'contact',
				title: 'Contact Informations',
				description: "<p>These are the usual informations to keep in touch</p>"
			}
		]
		
	};
	
	$.coolforms.create(form1);
});
	
	
</script>

</body>
</html>